home *** CD-ROM | disk | FTP | other *** search
/ Medabots Cardz / Medabots CD Cardz Rokusho.bin / pc / assets / rokusho.dxr / 00227_Script_227 < prev    next >
Text File  |  2001-12-07  |  9KB  |  283 lines

  1. property minuteman, tempdigits, tempscore, digit_one, digit_two, digit_three, digit_four, tempscoreone, tempscoretwo, tempscorethree
  2. global thescore, finalcode, scoredigits, timescore, gotobrassurl, myFile, squam, oldscore
  3.  
  4. --on enterframe me
  5. --  squam = getOSdirectory()&"\"
  6. --  if objectP(myFile) then set myFile = 0  --Delete the instance if it already exists
  7. --  myFile = new(xtra "fileio") -- Create an instance of FileIO
  8. --  --  openFile(myFile,the moviePath&"info.txt",1) --Open the file with read access
  9. --  openFile(myFile,squam&"info.txt",1) --Open the file with read access
  10. --  myVariable = readFile(myFile) --set the variable 'myVariable' to the text of the file 'info.txt'
  11. --  if readFile(myFile)=VOID then --checks to see if this file exists
  12. --    oldscore = 0
  13. --  else
  14. --    oldscore = myVariable
  15. --    closeFile(myFile) -- Close the file
  16. --  end if
  17. --  myFile = 0 -- Dispose of the instance
  18. --  
  19. --  
  20. --  minuteman = timescore/60
  21. --  if minuteman < 120 then
  22. --    thescore = 500
  23. --  else if minuteman > 119 and minuteman < 300 then
  24. --    thescore = 400
  25. --  else if minuteman > 299 and minuteman < 600 then
  26. --    thescore = 300
  27. --  else if minuteman > 599 and minuteman < 1200 then
  28. --    thescore = 200
  29. --  else if minuteman > 1199 and minuteman < 2000 then
  30. --    thescore = 150
  31. --  else
  32. --    thescore = 100
  33. --  end if
  34. --  thescore = thescore + oldscore
  35. --  put thescore into member("holdscore")
  36. --  
  37. --  if objectP(myFile) then set myFile = 0  --Delete the instance if it already exists
  38. --  myFile = new(xtra "fileio")    -- Create an instance of FileIO
  39. --  --  openFile (myFile, the moviePath &"info.txt",0)--Open the file with R/W access  
  40. --  openFile (myFile, squam&"info.txt",0)--Open the file with R/W access  
  41. --  delete(myFile) --deletes the file
  42. --  --  createFile (myFile, the moviePath &"info.txt") --creates the file again
  43. --  createFile (myFile, squam&"info.txt") --creates the file again
  44. --  --  openFile(myFile,the moviePath &"info.txt",0) --Open the file with R/W access
  45. --  openFile(myFile, squam&"info.txt",0) --Open the file with R/W access
  46. --  mySaveString = thescore --puts the contents of the field 'input' into the variable mySaveString
  47. --  mySaveString = member("holdscore").text
  48. --  writeString(myFile,mySaveString) --writes text to the file
  49. --  
  50. --  closeFile(myFile) -- Close the file 
  51. --  myFile = 0 -- Dispose of the instance
  52. --  
  53. --  put minuteman into member ("timedisplay")
  54. --  wakkit()
  55. --end
  56.  
  57.  
  58. on exitFrame me
  59.   cursor 0
  60.   go to the frame
  61. end
  62. --
  63. --on wakkit me
  64. --  brassurl = "http://medabots.com/rewards/coding/rewards_give.pl?a=snvsjdfnvkdfvdf"
  65. --  
  66. --  if thescore > 10000 then
  67. --    thescore = 9999
  68. --  end if
  69. --  
  70. --  if thescore > 0 and thescore <10 then
  71. --    scoredigits = 1
  72. --    tempscore = thescore
  73. --    tempdigits = 1
  74. --  else if thescore > 9 and thescore <100 then
  75. --    scoredigits = 2
  76. --    tempscore = thescore
  77. --    tempdigits = 2
  78. --  else if thescore >99 and thescore < 1000 then
  79. --    scoredigits = 3
  80. --    tempscore = thescore
  81. --    tempdigits = 3
  82. --  else if thescore >999 and thescore < 10000 then
  83. --    scoredigits = 4
  84. --    tempscore = thescore
  85. --    tempdigits = 4
  86. --  end if
  87. --  
  88. --  --  Four Figures
  89. --  if tempdigits = 4 then
  90. --    if tempscore > 999 and tempscore <2000 then
  91. --      digit_four = "q"
  92. --      tempscore = tempscore - 1000
  93. --      tempdigits = 3
  94. --    end if
  95. --    if tempscore > 1999 and tempscore <3000 then
  96. --      digit_four = "u"
  97. --      tempscore = tempscore - 2000
  98. --      tempdigits = 3
  99. --    end if
  100. --    if tempscore > 2999 and tempscore <4000 then
  101. --      digit_four = "j"
  102. --      tempscore = tempscore - 3000
  103. --      tempdigits = 3
  104. --    end if
  105. --    if tempscore > 3999 and tempscore <5000 then
  106. --      digit_four = "c"
  107. --      tempscore = tempscore - 4000
  108. --      tempdigits = 3
  109. --    end if
  110. --    if tempscore > 4999 and tempscore <6000 then
  111. --      digit_four = "k"
  112. --      tempscore = tempscore - 5000
  113. --      tempdigits = 3
  114. --    end if
  115. --    if tempscore > 5999 and tempscore <7000 then
  116. --      digit_four = "b"
  117. --      tempscore = tempscore - 6000
  118. --      tempdigits = 3
  119. --    end if
  120. --    if tempscore > 6999 and tempscore <8000 then
  121. --      digit_four = "r"
  122. --      tempscore = tempscore - 7000
  123. --      tempdigits = 3
  124. --    end if
  125. --    if tempscore > 7999 and tempscore <9000 then
  126. --      digit_four = "w"
  127. --      tempscore = tempscore - 8000
  128. --      tempdigits = 3
  129. --    end if
  130. --    if tempscore > 8999 and tempscore <10000 then
  131. --      digit_four = "n"
  132. --      tempscore = tempscore - 9000
  133. --      tempdigits = 3
  134. --    end if
  135. --  end if
  136. --  
  137. --  
  138. --  
  139. --  
  140. --  --  Three Figures
  141. --  if tempdigits = 3 then
  142. --    if tempscore > 99 and tempscore <200 then
  143. --      digit_three = "q"
  144. --      tempscore = tempscore - 100
  145. --      tempdigits = 2
  146. --    end if
  147. --    if tempscore > 199 and tempscore <300 then
  148. --      digit_three = "u"
  149. --      tempscore = tempscore - 200
  150. --      tempdigits = 2
  151. --    end if
  152. --    if tempscore > 299 and tempscore <400 then
  153. --      digit_three = "j"
  154. --      tempscore = tempscore - 300
  155. --      tempdigits = 2
  156. --    end if
  157. --    if tempscore > 399 and tempscore <500 then
  158. --      digit_three = "c"
  159. --      tempscore = tempscore - 400
  160. --      tempdigits = 2
  161. --    end if
  162. --    if tempscore > 499 and tempscore <600 then
  163. --      digit_three = "k"
  164. --      tempscore = tempscore - 500
  165. --      tempdigits = 2
  166. --    end if
  167. --    if tempscore > 599 and tempscore <700 then
  168. --      digit_three = "b"
  169. --      tempscore = tempscore - 600
  170. --      tempdigits = 2
  171. --    end if
  172. --    if tempscore > 699 and tempscore <800 then
  173. --      digit_three = "r"
  174. --      tempscore = tempscore - 700
  175. --      tempdigits = 2
  176. --    end if
  177. --    if tempscore > 799 and tempscore <900 then
  178. --      digit_three = "w"
  179. --      tempscore = tempscore - 800
  180. --      tempdigits = 2
  181. --    end if
  182. --    if tempscore > 899 and tempscore <1000 then
  183. --      digit_three = "n"
  184. --      tempscore = tempscore - 900
  185. --      tempdigits = 2
  186. --    end if
  187. --  end if
  188. --  
  189. --  
  190. --  --  Two Figures
  191. --  if tempdigits = 2 then
  192. --    if tempscore < 10 then
  193. --      digit_two = "x"
  194. --      tempscore = tempscore
  195. --      tempdigits = 1
  196. --    end if
  197. --    
  198. --    if tempscore > 9 and tempscore <20 then
  199. --      digit_two = "q"
  200. --      tempscore = tempscore - 10
  201. --      tempdigits = 1
  202. --    end if
  203. --    if tempscore > 19 and tempscore <30 then
  204. --      digit_two = "u"
  205. --      tempscore = tempscore - 20
  206. --      tempdigits = 1
  207. --    end if
  208. --    if tempscore > 29 and tempscore <40 then
  209. --      digit_two = "j"
  210. --      tempscore = tempscore - 30
  211. --      tempdigits = 1
  212. --    end if
  213. --    if tempscore > 39 and tempscore <50 then
  214. --      digit_two = "c"
  215. --      tempscore = tempscore - 40
  216. --      tempdigits = 1
  217. --    end if
  218. --    if tempscore > 49 and tempscore <60 then
  219. --      digit_two = "k"
  220. --      tempscore = tempscore - 50
  221. --      tempdigits = 1
  222. --    end if
  223. --    if tempscore > 59 and tempscore <70 then
  224. --      digit_two = "b"
  225. --      tempscore = tempscore - 60
  226. --      tempdigits = 1
  227. --    end if 
  228. --    if tempscore > 69 and tempscore <80 then
  229. --      digit_two = "r"
  230. --      tempscore = tempscore - 70
  231. --      tempdigits = 1
  232. --    end if
  233. --    if tempscore > 79 and tempscore <90 then
  234. --      digit_two = "w"
  235. --      tempscore = tempscore - 80
  236. --      tempdigits = 1
  237. --    end if
  238. --    if tempscore > 89 and tempscore <100 then
  239. --      digit_two = "n"
  240. --      tempscore = tempscore - 90
  241. --      tempdigits = 1
  242. --    end if
  243. --    
  244. --  end if
  245. --  --  One Figure
  246. --  if tempdigits = 1 then
  247. --    if tempscore = 0 then
  248. --      digit_one = "x"
  249. --    else if tempscore = 1 then
  250. --      digit_one = "q"
  251. --    else if tempscore = 2 then
  252. --      digit_one = "u"
  253. --    else if tempscore = 3 then
  254. --      digit_one = "j"
  255. --    else if tempscore = 4 then
  256. --      digit_one = "c"
  257. --    else if tempscore = 5 then
  258. --      digit_one = "k"
  259. --    else if tempscore = 6 then
  260. --      digit_one = "b"
  261. --    else if tempscore = 7 then
  262. --      digit_one = "r"
  263. --    else if tempscore = 8 then
  264. --      digit_one = "w"
  265. --    else if tempscore = 9 then
  266. --      digit_one = "n"
  267. --    end if
  268. --  end if
  269. --  
  270. --  if scoredigits = 1 then
  271. --    finalcode = digit_one
  272. --  else if scoredigits = 2 then
  273. --    finalcode = digit_two&digit_one
  274. --  else if scoredigits = 3 then
  275. --    finalcode = digit_three&digit_two&digit_one
  276. --  else if scoredigits = 4 then
  277. --    finalcode = digit_four&digit_three&digit_two&digit_one
  278. --  end if
  279. --  
  280. --  put brassurl&finalcode into member("urldisplay")
  281. --  gotobrassurl = brassurl&finalcode
  282. --end
  283.